package com.asset.dispoal.agent.service.converter;

import com.asset.dispoal.agent.domain.db.entity.SysAgent;
import com.asset.dispoal.agent.dto.SysAgentRequest;
import com.asset.dispoal.agent.dto.SysAgentResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/25$
 */
@Mapper
public interface SysAgentConverter {

    SysAgentConverter INSTANCE = Mappers.getMapper(SysAgentConverter.class);

    SysAgent resToDo(SysAgentRequest request);

    List<SysAgentResponse> dosToRes(List<SysAgent> mapperList);
}
